import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class javaDemo {
	public static void main(String[] args)
	{
		Pattern p = Pattern.compile("0*");
		Matcher m = p.matcher("a");
		System.out.println(m.matches());
	}
}
